package com.manager.enterprise.module.entity;

public class FileTotalNumber {
    private Integer totalFileNumber;
    private Integer imageNumber;
    private Integer audioNumber;
    private Integer videoNumber;
    private Integer docNumber;
    private Integer rarNumber;
    private Integer otherNumber;

    public Integer getOtherNumber() {
        return getTotalFileNumber() - getImageNumber() - getAudioNumber() - getVideoNumber() - getDocNumber() - getRarNumber();
    }

    public void setOtherNumber(Integer otherNumber) {
        this.otherNumber = otherNumber;
    }

    public Integer getTotalFileNumber() {
        if (totalFileNumber == null) return 0;
        return totalFileNumber;
    }

    public void setTotalFileNumber(Integer totalFileNumber) {
        this.totalFileNumber = totalFileNumber;
    }

    public Integer getImageNumber() {
        if (imageNumber == null) return 0;
        return imageNumber;
    }

    public void setImageNumber(Integer imageNumber) {
        this.imageNumber = imageNumber;
    }

    public Integer getAudioNumber() {
        if (audioNumber == null) return 0;
        return audioNumber;
    }

    public void setAudioNumber(Integer audioNumber) {
        this.audioNumber = audioNumber;
    }

    public Integer getVideoNumber() {
        if (videoNumber == null) return 0;
        return videoNumber;
    }

    public void setVideoNumber(Integer videoNumber) {
        this.videoNumber = videoNumber;
    }

    public Integer getDocNumber() {
        if (docNumber == null) return 0;
        return docNumber;
    }

    public void setDocNumber(Integer docNumber) {
        this.docNumber = docNumber;
    }

    public Integer getRarNumber() {
        if (rarNumber == null) return 0;
        return rarNumber;
    }

    public void setRarNumber(Integer rarNumber) {
        this.rarNumber = rarNumber;
    }


}
